namespace Cos.Core.NHibernate.Mapping
{
    using FluentNHibernate.Mapping;

    public class SubmissionValueMap : ClassMap<SubmissionValueDataModel>
    {
        public SubmissionValueMap()
        {
            this.Table("Submission_Value");
            this.LazyLoad();
            this.Id(x => x.Id).GeneratedBy.Native().Column("ID");
            this.Map(x => x.SubmissionId).Not.Nullable().Column("Submission_ID");
            this.Map(x => x.FormElementId).Not.Nullable().Column("Form_Element_ID");
            this.Map(x => x.Value).Column("Value");
            //HasMany(x => x.SubmissionValueItems).KeyColumn("Submission_Value_ID");
        }
    }
}